package com.woniu.outlet.mysql.po;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class GoldMysqlExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GoldMysqlExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(String value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(String value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(String value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(String value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(String value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(String value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLike(String value) {
            addCriterion("type like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotLike(String value) {
            addCriterion("type not like", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<String> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<String> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(String value1, String value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(String value1, String value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypenameIsNull() {
            addCriterion("typename is null");
            return (Criteria) this;
        }

        public Criteria andTypenameIsNotNull() {
            addCriterion("typename is not null");
            return (Criteria) this;
        }

        public Criteria andTypenameEqualTo(String value) {
            addCriterion("typename =", value, "typename");
            return (Criteria) this;
        }

        public Criteria andTypenameNotEqualTo(String value) {
            addCriterion("typename <>", value, "typename");
            return (Criteria) this;
        }

        public Criteria andTypenameGreaterThan(String value) {
            addCriterion("typename >", value, "typename");
            return (Criteria) this;
        }

        public Criteria andTypenameGreaterThanOrEqualTo(String value) {
            addCriterion("typename >=", value, "typename");
            return (Criteria) this;
        }

        public Criteria andTypenameLessThan(String value) {
            addCriterion("typename <", value, "typename");
            return (Criteria) this;
        }

        public Criteria andTypenameLessThanOrEqualTo(String value) {
            addCriterion("typename <=", value, "typename");
            return (Criteria) this;
        }

        public Criteria andTypenameLike(String value) {
            addCriterion("typename like", value, "typename");
            return (Criteria) this;
        }

        public Criteria andTypenameNotLike(String value) {
            addCriterion("typename not like", value, "typename");
            return (Criteria) this;
        }

        public Criteria andTypenameIn(List<String> values) {
            addCriterion("typename in", values, "typename");
            return (Criteria) this;
        }

        public Criteria andTypenameNotIn(List<String> values) {
            addCriterion("typename not in", values, "typename");
            return (Criteria) this;
        }

        public Criteria andTypenameBetween(String value1, String value2) {
            addCriterion("typename between", value1, value2, "typename");
            return (Criteria) this;
        }

        public Criteria andTypenameNotBetween(String value1, String value2) {
            addCriterion("typename not between", value1, value2, "typename");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(BigDecimal value) {
            addCriterion("price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(BigDecimal value) {
            addCriterion("price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(BigDecimal value) {
            addCriterion("price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(BigDecimal value) {
            addCriterion("price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<BigDecimal> values) {
            addCriterion("price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<BigDecimal> values) {
            addCriterion("price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andOpeningpriceIsNull() {
            addCriterion("openingPrice is null");
            return (Criteria) this;
        }

        public Criteria andOpeningpriceIsNotNull() {
            addCriterion("openingPrice is not null");
            return (Criteria) this;
        }

        public Criteria andOpeningpriceEqualTo(BigDecimal value) {
            addCriterion("openingPrice =", value, "openingprice");
            return (Criteria) this;
        }

        public Criteria andOpeningpriceNotEqualTo(BigDecimal value) {
            addCriterion("openingPrice <>", value, "openingprice");
            return (Criteria) this;
        }

        public Criteria andOpeningpriceGreaterThan(BigDecimal value) {
            addCriterion("openingPrice >", value, "openingprice");
            return (Criteria) this;
        }

        public Criteria andOpeningpriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("openingPrice >=", value, "openingprice");
            return (Criteria) this;
        }

        public Criteria andOpeningpriceLessThan(BigDecimal value) {
            addCriterion("openingPrice <", value, "openingprice");
            return (Criteria) this;
        }

        public Criteria andOpeningpriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("openingPrice <=", value, "openingprice");
            return (Criteria) this;
        }

        public Criteria andOpeningpriceIn(List<BigDecimal> values) {
            addCriterion("openingPrice in", values, "openingprice");
            return (Criteria) this;
        }

        public Criteria andOpeningpriceNotIn(List<BigDecimal> values) {
            addCriterion("openingPrice not in", values, "openingprice");
            return (Criteria) this;
        }

        public Criteria andOpeningpriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("openingPrice between", value1, value2, "openingprice");
            return (Criteria) this;
        }

        public Criteria andOpeningpriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("openingPrice not between", value1, value2, "openingprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceIsNull() {
            addCriterion("maxPrice is null");
            return (Criteria) this;
        }

        public Criteria andMaxpriceIsNotNull() {
            addCriterion("maxPrice is not null");
            return (Criteria) this;
        }

        public Criteria andMaxpriceEqualTo(BigDecimal value) {
            addCriterion("maxPrice =", value, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceNotEqualTo(BigDecimal value) {
            addCriterion("maxPrice <>", value, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceGreaterThan(BigDecimal value) {
            addCriterion("maxPrice >", value, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("maxPrice >=", value, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceLessThan(BigDecimal value) {
            addCriterion("maxPrice <", value, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("maxPrice <=", value, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceIn(List<BigDecimal> values) {
            addCriterion("maxPrice in", values, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceNotIn(List<BigDecimal> values) {
            addCriterion("maxPrice not in", values, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("maxPrice between", value1, value2, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMaxpriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("maxPrice not between", value1, value2, "maxprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceIsNull() {
            addCriterion("minPrice is null");
            return (Criteria) this;
        }

        public Criteria andMinpriceIsNotNull() {
            addCriterion("minPrice is not null");
            return (Criteria) this;
        }

        public Criteria andMinpriceEqualTo(BigDecimal value) {
            addCriterion("minPrice =", value, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceNotEqualTo(BigDecimal value) {
            addCriterion("minPrice <>", value, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceGreaterThan(BigDecimal value) {
            addCriterion("minPrice >", value, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("minPrice >=", value, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceLessThan(BigDecimal value) {
            addCriterion("minPrice <", value, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("minPrice <=", value, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceIn(List<BigDecimal> values) {
            addCriterion("minPrice in", values, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceNotIn(List<BigDecimal> values) {
            addCriterion("minPrice not in", values, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("minPrice between", value1, value2, "minprice");
            return (Criteria) this;
        }

        public Criteria andMinpriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("minPrice not between", value1, value2, "minprice");
            return (Criteria) this;
        }

        public Criteria andChangepercentIsNull() {
            addCriterion("changepercent is null");
            return (Criteria) this;
        }

        public Criteria andChangepercentIsNotNull() {
            addCriterion("changepercent is not null");
            return (Criteria) this;
        }

        public Criteria andChangepercentEqualTo(BigDecimal value) {
            addCriterion("changepercent =", value, "changepercent");
            return (Criteria) this;
        }

        public Criteria andChangepercentNotEqualTo(BigDecimal value) {
            addCriterion("changepercent <>", value, "changepercent");
            return (Criteria) this;
        }

        public Criteria andChangepercentGreaterThan(BigDecimal value) {
            addCriterion("changepercent >", value, "changepercent");
            return (Criteria) this;
        }

        public Criteria andChangepercentGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("changepercent >=", value, "changepercent");
            return (Criteria) this;
        }

        public Criteria andChangepercentLessThan(BigDecimal value) {
            addCriterion("changepercent <", value, "changepercent");
            return (Criteria) this;
        }

        public Criteria andChangepercentLessThanOrEqualTo(BigDecimal value) {
            addCriterion("changepercent <=", value, "changepercent");
            return (Criteria) this;
        }

        public Criteria andChangepercentIn(List<BigDecimal> values) {
            addCriterion("changepercent in", values, "changepercent");
            return (Criteria) this;
        }

        public Criteria andChangepercentNotIn(List<BigDecimal> values) {
            addCriterion("changepercent not in", values, "changepercent");
            return (Criteria) this;
        }

        public Criteria andChangepercentBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("changepercent between", value1, value2, "changepercent");
            return (Criteria) this;
        }

        public Criteria andChangepercentNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("changepercent not between", value1, value2, "changepercent");
            return (Criteria) this;
        }

        public Criteria andLastclosingpriceIsNull() {
            addCriterion("lastclosingprice is null");
            return (Criteria) this;
        }

        public Criteria andLastclosingpriceIsNotNull() {
            addCriterion("lastclosingprice is not null");
            return (Criteria) this;
        }

        public Criteria andLastclosingpriceEqualTo(BigDecimal value) {
            addCriterion("lastclosingprice =", value, "lastclosingprice");
            return (Criteria) this;
        }

        public Criteria andLastclosingpriceNotEqualTo(BigDecimal value) {
            addCriterion("lastclosingprice <>", value, "lastclosingprice");
            return (Criteria) this;
        }

        public Criteria andLastclosingpriceGreaterThan(BigDecimal value) {
            addCriterion("lastclosingprice >", value, "lastclosingprice");
            return (Criteria) this;
        }

        public Criteria andLastclosingpriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("lastclosingprice >=", value, "lastclosingprice");
            return (Criteria) this;
        }

        public Criteria andLastclosingpriceLessThan(BigDecimal value) {
            addCriterion("lastclosingprice <", value, "lastclosingprice");
            return (Criteria) this;
        }

        public Criteria andLastclosingpriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("lastclosingprice <=", value, "lastclosingprice");
            return (Criteria) this;
        }

        public Criteria andLastclosingpriceIn(List<BigDecimal> values) {
            addCriterion("lastclosingprice in", values, "lastclosingprice");
            return (Criteria) this;
        }

        public Criteria andLastclosingpriceNotIn(List<BigDecimal> values) {
            addCriterion("lastclosingprice not in", values, "lastclosingprice");
            return (Criteria) this;
        }

        public Criteria andLastclosingpriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("lastclosingprice between", value1, value2, "lastclosingprice");
            return (Criteria) this;
        }

        public Criteria andLastclosingpriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("lastclosingprice not between", value1, value2, "lastclosingprice");
            return (Criteria) this;
        }

        public Criteria andTradeamountIsNull() {
            addCriterion("tradeamount is null");
            return (Criteria) this;
        }

        public Criteria andTradeamountIsNotNull() {
            addCriterion("tradeamount is not null");
            return (Criteria) this;
        }

        public Criteria andTradeamountEqualTo(BigDecimal value) {
            addCriterion("tradeamount =", value, "tradeamount");
            return (Criteria) this;
        }

        public Criteria andTradeamountNotEqualTo(BigDecimal value) {
            addCriterion("tradeamount <>", value, "tradeamount");
            return (Criteria) this;
        }

        public Criteria andTradeamountGreaterThan(BigDecimal value) {
            addCriterion("tradeamount >", value, "tradeamount");
            return (Criteria) this;
        }

        public Criteria andTradeamountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("tradeamount >=", value, "tradeamount");
            return (Criteria) this;
        }

        public Criteria andTradeamountLessThan(BigDecimal value) {
            addCriterion("tradeamount <", value, "tradeamount");
            return (Criteria) this;
        }

        public Criteria andTradeamountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("tradeamount <=", value, "tradeamount");
            return (Criteria) this;
        }

        public Criteria andTradeamountIn(List<BigDecimal> values) {
            addCriterion("tradeamount in", values, "tradeamount");
            return (Criteria) this;
        }

        public Criteria andTradeamountNotIn(List<BigDecimal> values) {
            addCriterion("tradeamount not in", values, "tradeamount");
            return (Criteria) this;
        }

        public Criteria andTradeamountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("tradeamount between", value1, value2, "tradeamount");
            return (Criteria) this;
        }

        public Criteria andTradeamountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("tradeamount not between", value1, value2, "tradeamount");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updatetime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updatetime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updatetime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updatetime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updatetime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updatetime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updatetime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updatetime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updatetime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updatetime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updatetime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updatetime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}